<template>
  <div class="slide-preview" v-html="compiledComponent"></div>
</template>

<script setup>
import { ref, onMounted } from 'vue';
import { h } from 'vue';

const props = defineProps({
  slideContent: {
    type: String,
    required: true
  }
});

const compiledComponent = ref('');

onMounted(() => {
  // 这里先用模拟的内容，后续会替换成真实的AI生成内容
  compiledComponent.value = props.slideContent;
});
</script> 